﻿using System.IO;
using Kaiser.Infrastructure.DomainBase;

namespace Kaiser.Modules.CmsV2.Domain.Entity
{
    public class Attach : EntityBase
    {
        /// <summary>
        /// 附件名称
        /// </summary>
        public string AttachName { get; set; }

        /// <summary>
        /// 附件类型
        /// </summary>
        public string AttachType { get; set; }

        /// <summary>
        /// 附件大小
        /// </summary>
        public int AttachSize { get; set; }

        /// <summary>
        /// 附件连接地址
        /// </summary>
        public string Affix { get; set; }

        /// <summary>
        /// 下载次数
        /// </summary>
        public int DownLoadCount { get; set; }


        public void DownLoadAttach()
        {
            //todo 下载文件实现
        }

        public void UploadAttach(Stream stream)
        {
            //todo 上传文件实现
        }
    }
}
